package edu.nf.project.entitys.dto.storeOperation;

import edu.nf.project.entitys.entity.storeOperation.convention.operate.CustomerOrder;
import edu.nf.project.entitys.entity.storeOperation.convention.operate.CustomerOrderItem;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author CSY
 * @date 2025 - 06 - 06
 * 订单DTO - 订单主表和订单项表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrderDTO {
    /**
     * 订单主表信息
     */
    private CustomerOrder order;

    /**
     * 订单项表信息
     */
    private List<CustomerOrderItem> orderItems;

    /**
     * 优惠券编号 - 用于删除优惠券
     */
    private Integer couponId;
}
